package cn.mapper;

import cn.dto.Query;
import cn.entity.Banner;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface BannerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Banner record);

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Banner record);

    int updateByPrimaryKey(Banner record);

    List<Banner> selectBannerList(Query query);

    int totalNum();
}